/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import '../../../components/colors.less'; // contains only variables

:global { // DX-11429 TODO reafactor component to use css modules instead fo global classes

  .explore-info-header {

    .cur-link {
      color: #B3B3B3;
    }

    .title-wrap {
      font-size: 11px;
      .Breadcrumbs {
        display: inline-block;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 100%; // do not let to exceed parent width
      }
    }

    .toogler {
      &.info-button {
        width: 50px;
        font-size: 18px;
      }
    }

    .dropdown-for-actions {
      right: 452px;
      top: 24px;
    }

    .setting-item {
      width: 55px;
      height: 27px;
      margin-right: 0;
      background-color: #EFEFEF;

      &:hover {
        background-color: darken(#EFEFEF, 10%);
      }

      .fa-cog {
        font-size: 19px;
        color: #000;
      }

      .fa-angle-down {
        font-size: 19px;
        right: 3px;
        position: relative;
      }
    }

    .info-button {
      border: 1px solid #ccc;
      width: 90px;
      height: 28px;
      outline: none;
      border-radius: 4px;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #EFEFEF;
      font-size: 14px;

      &.blue-button {
        background-color: #0094FB;
        color: #fff;
        border-color: #0094FB;

        &:hover {
          background-color: darken(#0094FB, 10%);
        }
      }

      &:hover {
        background-color: darken(#EFEFEF, 10%);
      }
    }

    .right-part {
      display: flex;
      align-items: center;
      margin-right: 15px;

      .preview-button {
        margin-right: 5px;
      }

      .divider {
        background-color: #d9d9d9;
        width: 1px;
        height: 20px;
        margin: 0 8px 0 4px;
      }

    }

    .prev-link {
      color: blue;
      cursor: pointer;
    }

    .flexbox-truncate-text-fix {
      // we should apply min-width for flexbox child to work truncation correctly. See https://css-tricks.com/flexbox-truncated-text/
      min-width: 0;
    }

    .title-wrap {
      .flexbox-truncate-text-fix;
      .copy-button {
        margin: 0 0 0 5px;
        opacity: 0;
      }
      &:hover {
        .copy-button {
          opacity: 1;
        }
      }
    }
  }
}
